<?php

namespace api\controller;

// +----------------------------------------------------------------------
// | 行业数据控制层
// +----------------------------------------------------------------------

use common\controller\VerifyController;
use common\service\StepService;
use support\Request;

class IndustryController extends VerifyController
{
    protected $stepService;

    public function __construct()
    {
        parent::__construct();
        $this->stepService = StepService::getInstance();
    }

    /**
     * 工序分类=>工序  树
     * @param Request $request
     * @return \think\Response
     */
    public function selectCateTree(Request $request)
    {
        $res = $this->stepService->selectStepsWithCate();
        return json(success_response('ok', $res));
    }
}
